#ifndef LOGIN_H
#define LOGIN_H

#include <QDialog>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>

class Login : public QDialog
{
    Q_OBJECT
public:
    explicit Login(QWidget *parent = nullptr);
    void initLayout();
public slots:
    void checkLogin();
private:
    int* usrNum;
    int* isCorrect;
    char*** usrinfo;
    QLabel* msg;
    QLabel* usrname;
    QLabel* passwd;
    QLineEdit* input_usrname;
    QLineEdit* input_passwd;
    QPushButton* login;
    QPushButton* cancel;
signals:
    void loginSuccess();
    void loginFailure();
};

#endif // LOGIN_H
